package com.itheima.service.impl;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 刘全
 * @date 2021/9/13
 */
@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;

    public void change(String oName, String iName, double money) {
        accountDao.out(oName, money);
        int i = 1 / 0;
        accountDao.in(iName, money);
    }
}
